package naruto.datastructures.criteria;

/**
 *
 * @author nacuong
 */
public class MethodCallCriterion extends Criterion{
  String methodName;
  
  public MethodCallCriterion(String methodName){
    this.methodName = methodName;
  }

  @Override
  public boolean equals(Object methodCallCriterion){
    return methodCallCriterion instanceof MethodCallCriterion
            && this.methodName.equals(((MethodCallCriterion)methodCallCriterion).methodName);
  }
  
  public String getMethodName(){
    return methodName;
  }

  @Override
  public String toString(){
    return methodName;
  }
}
